<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>数组</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width">
        <script>
            window.onload = function() {
                var a = [35, 2, 5635, 33, 5];
                var b = ["q", "e", "a", "z", "p"];
//                arr.unshift(9);
//                arr.shift();
//                arr.push(0);
//                arr.pop();
//                arr.splice(2,2);
//                arr.splice(2, 0, "dgka", 234);
//                alert(b.concat(a));
//                alert(a.join("-"));
                a.sort(function(n1, n2) {
                    return n1 - n2;
                });
                alert(a);
            };
        </script>
    </head>
    <body>

    </body>
</html>
